
public class MultiplicativeExpr3 {
	String to;
	String Do;
	String mo;
	PrimaryExpr pe;
	int lineNum;
	int charPos;
	
	public MultiplicativeExpr3(String to, String Do, String mo, PrimaryExpr pe, int line, int charP){
		this.to = to ;
		this.Do = Do;
		this.mo = mo;
		this.pe = pe;
		this.lineNum = line;
		this.charPos = charP;
	}
	public String toString(){
		String ret = "\n";

		String s = "";
		if (to != null)
			s += to;
		if(Do != null)
			s += Do;
		if(mo != null)
			s += mo;
		if (pe != null) {
			s +=  "\n"+pe.toString();
		}
		
		return ret+s;
	}
	public void check(Type t) throws SemanticException {
		if (pe != null) {
			pe.check(t);
		}
	}
}
